Skip to content

Update messaging in AddCustomerMatchUserList example#357

Merged
devchas merged 4 commits intogoogleads:masterfrom
devchas:cust-match-msg
Oct 27, 2020
Merged

Update messaging in AddCustomerMatchUserList example#357
devchas merged 4 commits intogoogleads:masterfrom
devchas:cust-match-msg

Conversation

@devchas
Copy link
Copy Markdown
Contributor

@devchas devchas commented Oct 20, 2020

In response to #353

Change-Id: I9cec5b2a44d3bb4808f552af19fe714a0f382eb7
Change-Id: I387057f002c96be24f82b8690b48737079b67e43
System.out.println("Waiting until operation completes.");

// The polling future implements a default back-off policy for retrying.
// Note: Retrieving the results of the asynchronous request is for demonstrative purposes only
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we give guidance for how to restart polling asynchronously? It seems like this could be a source of confusion...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I experimented with getting the LRO handle again when I worked on the Stores Sales upload example, and found that process confusing as well. This is why that example just prints out a GAQL query the user can use to come back and check on the results of the LRO later:

https://github.com/googleads/google-ads-java/blob/master/google-ads-examples/src/main/java/com/google/ads/googleads/examples/remarketing/UploadStoreSalesTransactions.java#L494

WDYT of going with that approach here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM as well. I've also added an option to print the results if the status is SUCCESS.

Change-Id: Ia6322cf443253e488e2701d8aed72f141e9afd8e
@devchas devchas requested review from jradcliff and nwbirnie October 20, 2020 16:07
Change-Id: I9a3affa7cc8a6bf9fc55554d98bba265562e0ddd
@devchas devchas requested review from jradcliff and nwbirnie October 21, 2020 18:40
@devchas devchas merged commit 3ca606b into googleads:master Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants